package com.yl.pattern.structuralmodel.decorator;

/**
 * @Author 小羊
 * @Date 30/10/2024下午 9:14
 * @ClassName Garnish
 * @Description 装饰者类（抽象装饰角色）
 */
public abstract class Garnish extends FastFood{
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }
    public Garnish( FastFood fastFood,float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
